import yayJpg from '../assets/yay.jpg';
import { FlamegraphRenderer, Box } from '@/flamegraph';

const SimpleTree = {
  version: 1,
  flamebearer: {
    maxSelf: 67,
    numTicks: 437,
    levels: [
      [
        0,
        437,
        0,
        0
      ],
      [
        0,
        437,
        0,
        1
      ],
      [
        0,
        437,
        0,
        2
      ],
      [
        0,
        1,
        0,
        3,
        0,
        3,
        0,
        4,
        0,
        1,
        0,
        6,
        0,
        5,
        0,
        56,
        0,
        360,
        0,
        89,
        0,
        10,
        0,
        91,
        0,
        33,
        0,
        92,
        0,
        9,
        0,
        181,
        0,
        3,
        0,
        94,
        0,
        1,
        0,
        90,
        0,
        3,
        0,
        96,
        0,
        2,
        0,
        68,
        0,
        5,
        0,
        69,
        0,
        1,
        0,
        7
      ],
      [
        0,
        1,
        0,
        4,
        0,
        3,
        0,
        5,
        0,
        1,
        0,
        7,
        0,
        1,
        0,
        57,
        0,
        4,
        0,
        68,
        0,
        89,
        0,
        90,
        0,
        271,
        2,
        91,
        0,
        10,
        0,
        92,
        0,
        33,
        0,
        93,
        0,
        9,
        0,
        182,
        0,
        3,
        0,
        95,
        0,
        1,
        0,
        91,
        0,
        3,
        0,
        56,
        0,
        2,
        0,
        69,
        0,
        5,
        0,
        3,
        0,
        1,
        0,
        8
      ],
      [
        0,
        1,
        0,
        5,
        0,
        3,
        0,
        6,
        0,
        1,
        0,
        8,
        0,
        1,
        0,
        58,
        0,
        4,
        0,
        69,
        0,
        89,
        1,
        91,
        2,
        269,
        0,
        92,
        0,
        10,
        0,
        93,
        0,
        33,
        0,
        94,
        0,
        1,
        0,
        183,
        0,
        5,
        0,
        191,
        0,
        1,
        0,
        198,
        0,
        1,
        0,
        203,
        0,
        1,
        0,
        208,
        0,
        3,
        0,
        96,
        0,
        1,
        0,
        92,
        0,
        3,
        0,
        68,
        0,
        2,
        0,
        3,
        0,
        5,
        0,
        4,
        0,
        1,
        0,
        9
      ],
      [
        0,
        1,
        0,
        6,
        0,
        3,
        0,
        7,
        0,
        1,
        0,
        9,
        0,
        1,
        0,
        3,
        0,
        4,
        0,
        3,
        1,
        88,
        0,
        92,
        0,
        3,
        0,
        131,
        0,
        266,
        0,
        93,
        2,
        10,
        0,
        94,
        0,
        33,
        0,
        95,
        0,
        1,
        0,
        184,
        0,
        5,
        0,
        192,
        0,
        1,
        0,
        199,
        0,
        1,
        0,
        204,
        0,
        1,
        0,
        192,
        0,
        3,
        0,
        56,
        0,
        1,
        0,
        93,
        0,
        3,
        0,
        69,
        0,
        2,
        0,
        4,
        0,
        5,
        0,
        5,
        0,
        1,
        0,
        10
      ],
      [
        0,
        1,
        0,
        7,
        0,
        3,
        0,
        8,
        0,
        1,
        0,
        10,
        0,
        1,
        0,
        4,
        0,
        4,
        0,
        4,
        0,
        84,
        0,
        93,
        0,
        3,
        0,
        131,
        0,
        1,
        0,
        136,
        1,
        3,
        1,
        132,
        0,
        262,
        0,
        94,
        0,
        4,
        4,
        169,
        2,
        10,
        0,
        95,
        0,
        33,
        0,
        96,
        0,
        1,
        0,
        185,
        0,
        5,
        0,
        193,
        0,
        1,
        0,
        200,
        0,
        1,
        0,
        205,
        0,
        1,
        0,
        193,
        0,
        1,
        0,
        57,
        0,
        2,
        0,
        68,
        0,
        1,
        0,
        94,
        0,
        3,
        0,
        3,
        0,
        2,
        0,
        5,
        0,
        5,
        0,
        6,
        0,
        1,
        0,
        11
      ],
      [
        0,
        1,
        0,
        8,
        0,
        1,
        0,
        23,
        0,
        2,
        0,
        9,
        0,
        1,
        0,
        11,
        0,
        1,
        0,
        5,
        0,
        4,
        0,
        5,
        0,
        84,
        0,
        94,
        0,
        3,
        0,
        132,
        0,
        1,
        0,
        57,
        2,
        2,
        0,
        133,
        0,
        262,
        0,
        95,
        6,
        10,
        0,
        96,
        0,
        33,
        0,
        56,
        0,
        1,
        0,
        186,
        0,
        5,
        0,
        194,
        0,
        1,
        0,
        201,
        0,
        1,
        0,
        206,
        0,
        1,
        0,
        209,
        0,
        1,
        0,
        58,
        0,
        2,
        0,
        69,
        0,
        1,
        0,
        95,
        0,
        3,
        0,
        4,
        0,
        2,
        0,
        6,
        0,
        5,
        0,
        7,
        0,
        1,
        0,
        12
      ],
      [
        0,
        1,
        0,
        9,
        0,
        1,
        0,
        24,
        0,
        2,
        0,
        10,
        0,
        1,
        0,
        12,
        0,
        1,
        0,
        6,
        0,
        4,
        0,
        6,
        0,
        84,
        0,
        95,
        0,
        3,
        0,
        133,
        0,
        1,
        0,
        58,
        1,
        1,
        1,
        39,
        0,
        1,
        0,
        57,
        1,
        256,
        0,
        96,
        0,
        6,
        1,
        127,
        6,
        10,
        0,
        56,
        0,
        33,
        0,
        68,
        0,
        1,
        0,
        187,
        0,
        5,
        0,
        175,
        0,
        1,
        1,
        202,
        0,
        1,
        0,
        207,
        0,
        1,
        0,
        210,
        0,
        1,
        0,
        3,
        0,
        2,
        0,
        3,
        0,
        1,
        0,
        96,
        0,
        3,
        0,
        5,
        0,
        2,
        0,
        7,
        0,
        5,
        0,
        8,
        0,
        1,
        0,
        13
      ],
      [
        0,
        1,
        0,
        10,
        0,
        1,
        0,
        25,
        0,
        2,
        0,
        11,
        0,
        1,
        0,
        13,
        0,
        1,
        0,
        59,
        0,
        4,
        0,
        7,
        0,
        82,
        0,
        96,
        0,
        2,
        0,
        127,
        0,
        1,
        0,
        134,
        0,
        2,
        0,
        57,
        0,
        1,
        0,
        3,
        2,
        1,
        0,
        58,
        1,
        256,
        0,
        56,
        1,
        5,
        1,
        128,
        6,
        10,
        0,
        68,
        0,
        33,
        0,
        69,
        0,
        1,
        0,
        188,
        0,
        5,
        0,
        176,
        1,
        1,
        1,
        190,
        0,
        1,
        1,
        39,
        0,
        1,
        0,
        4,
        0,
        2,
        0,
        4,
        0,
        1,
        0,
        56,
        0,
        3,
        0,
        6,
        0,
        2,
        0,
        8,
        0,
        1,
        0,
        23,
        0,
        4,
        0,
        9,
        0,
        1,
        0,
        40
      ],
      [
        0,
        1,
        0,
        11,
        0,
        1,
        0,
        26,
        0,
        2,
        0,
        12,
        0,
        1,
        0,
        40,
        0,
        1,
        0,
        60,
        0,
        4,
        0,
        8,
        0,
        82,
        0,
        56,
        0,
        2,
        0,
        128,
        0,
        1,
        1,
        135,
        0,
        2,
        0,
        58,
        0,
        1,
        0,
        4,
        2,
        1,
        0,
        3,
        1,
        71,
        0,
        68,
        0,
        139,
        0,
        57,
        0,
        46,
        0,
        124,
        1,
        4,
        0,
        129,
        7,
        10,
        0,
        69,
        0,
        33,
        0,
        3,
        0,
        1,
        0,
        189,
        0,
        5,
        0,
        177,
        3,
        1,
        0,
        5,
        0,
        2,
        0,
        5,
        0,
        1,
        0,
        68,
        0,
        3,
        0,
        7,
        0,
        2,
        0,
        9,
        0,
        1,
        0,
        24,
        0,
        4,
        0,
        10,
        0,
        1,
        0,
        48
      ],
      [
        0,
        1,
        0,
        12,
        0,
        1,
        0,
        27,
        0,
        2,
        0,
        13,
        0,
        1,
        0,
        48,
        0,
        1,
        0,
        61,
        0,
        2,
        0,
        9,
        0,
        2,
        0,
        23,
        0,
        3,
        0,
        68,
        0,
        52,
        0,
        57,
        0,
        27,
        0,
        124,
        0,
        2,
        0,
        129,
        1,
        2,
        0,
        3,
        0,
        1,
        0,
        5,
        2,
        1,
        0,
        4,
        1,
        71,
        0,
        69,
        0,
        139,
        0,
        58,
        0,
        46,
        0,
        125,
        0,
        4,
        4,
        130,
        8,
        10,
        0,
        3,
        0,
        33,
        0,
        4,
        0,
        1,
        1,
        190,
        0,
        5,
        0,
        195,
        3,
        1,
        0,
        6,
        0,
        2,
        0,
        6,
        0,
        1,
        0,
        69,
        0,
        3,
        0,
        8,
        0,
        2,
        0,
        10,
        0,
        1,
        0,
        25,
        0,
        4,
        0,
        11,
        0,
        1,
        0,
        49
      ],
      [
        0,
        1,
        0,
        13,
        0,
        1,
        0,
        28,
        0,
        1,
        0,
        14,
        0,
        1,
        0,
        40,
        0,
        1,
        0,
        49,
        0,
        1,
        0,
        62,
        0,
        1,
        0,
        10,
        0,
        1,
        0,
        73,
        0,
        2,
        0,
        24,
        0,
        3,
        0,
        69,
        0,
        52,
        0,
        58,
        0,
        27,
        0,
        125,
        0,
        2,
        2,
        130,
        1,
        2,
        0,
        4,
        0,
        1,
        0,
        6,
        2,
        1,
        0,
        5,
        1,
        71,
        0,
        3,
        0,
        139,
        0,
        3,
        0,
        46,
        0,
        3,
        12,
        10,
        0,
        4,
        0,
        33,
        0,
        5,
        1,
        5,
        0,
        196,
        3,
        1,
        0,
        7,
        0,
        2,
        0,
        7,
        0,
        1,
        0,
        3,
        0,
        3,
        0,
        9,
        0,
        2,
        0,
        11,
        0,
        1,
        0,
        26,
        0,
        4,
        0,
        12,
        0,
        1,
        0,
        50
      ],
      [
        0,
        1,
        0,
        14,
        0,
        1,
        0,
        26,
        0,
        1,
        0,
        15,
        0,
        1,
        0,
        25,
        0,
        1,
        0,
        50,
        0,
        1,
        0,
        63,
        0,
        1,
        0,
        11,
        0,
        1,
        0,
        74,
        0,
        2,
        0,
        48,
        0,
        3,
        0,
        3,
        0,
        52,
        0,
        3,
        0,
        27,
        0,
        3,
        3,
        2,
        0,
        5,
        0,
        1,
        0,
        115,
        2,
        1,
        0,
        6,
        1,
        71,
        0,
        4,
        0,
        139,
        0,
        4,
        0,
        46,
        0,
        4,
        12,
        10,
        0,
        5,
        0,
        33,
        0,
        6,
        1,
        5,
        5,
        197,
        3,
        1,
        0,
        8,
        0,
        2,
        0,
        8,
        0,
        1,
        0,
        4,
        0,
        3,
        0,
        10,
        0,
        2,
        0,
        12,
        0,
        1,
        0,
        27,
        0,
        4,
        0,
        13,
        0,
        1,
        0,
        51
      ],
      [
        0,
        1,
        0,
        15,
        0,
        1,
        0,
        29,
        0,
        1,
        0,
        33,
        0,
        1,
        0,
        26,
        0,
        1,
        0,
        51,
        0,
        1,
        0,
        53,
        0,
        1,
        0,
        12,
        0,
        1,
        0,
        75,
        0,
        2,
        0,
        49,
        0,
        3,
        0,
        4,
        0,
        52,
        0,
        4,
        0,
        27,
        0,
        4,
        3,
        2,
        0,
        6,
        0,
        1,
        0,
        116,
        2,
        1,
        0,
        115,
        1,
        71,
        0,
        5,
        0,
        139,
        0,
        5,
        0,
        46,
        0,
        5,
        12,
        10,
        0,
        6,
        0,
        33,
        0,
        139,
        9,
        1,
        0,
        23,
        0,
        1,
        0,
        9,
        0,
        1,
        0,
        23,
        0,
        1,
        0,
        5,
        0,
        3,
        0,
        11,
        0,
        2,
        0,
        13,
        0,
        1,
        0,
        28,
        0,
        3,
        0,
        14,
        0,
        1,
        0,
        40,
        0,
        1,
        0,
        52
      ],
      [
        0,
        1,
        0,
        16,
        0,
        1,
        0,
        30,
        0,
        1,
        0,
        34,
        0,
        1,
        0,
        41,
        0,
        1,
        0,
        52,
        0,
        1,
        0,
        54,
        0,
        1,
        0,
        13,
        0,
        1,
        0,
        76,
        0,
        2,
        0,
        83,
        0,
        3,
        0,
        5,
        0,
        52,
        0,
        5,
        0,
        27,
        0,
        5,
        3,
        2,
        0,
        115,
        0,
        1,
        1,
        39,
        2,
        1,
        0,
        116,
        1,
        71,
        24,
        6,
        0,
        139,
        3,
        6,
        0,
        46,
        27,
        6,
        12,
        8,
        0,
        139,
        0,
        2,
        0,
        7,
        0,
        33,
        0,
        140,
        9,
        1,
        0,
        24,
        0,
        1,
        0,
        10,
        0,
        1,
        0,
        24,
        0,
        1,
        0,
        6,
        0,
        3,
        0,
        12,
        0,
        2,
        0,
        14,
        0,
        1,
        0,
        219,
        0,
        3,
        0,
        15,
        0,
        1,
        0,
        25,
        0,
        1,
        0,
        53
      ],
      [
        0,
        1,
        0,
        17,
        0,
        1,
        0,
        31,
        0,
        1,
        0,
        26,
        0,
        1,
        0,
        42,
        0,
        1,
        0,
        53,
        0,
        1,
        0,
        55,
        0,
        1,
        0,
        40,
        0,
        1,
        0,
        77,
        0,
        2,
        0,
        84,
        0,
        3,
        1,
        6,
        0,
        52,
        1,
        6,
        0,
        27,
        14,
        6,
        3,
        2,
        0,
        116,
        3,
        1,
        1,
        39,
        25,
        2,
        0,
        7,
        0,
        45,
        0,
        139,
        3,
        3,
        0,
        126,
        0,
        29,
        1,
        59,
        0,
        23,
        3,
        101,
        0,
        67,
        0,
        115,
        0,
        1,
        1,
        164,
        0,
        13,
        1,
        117,
        27,
        19,
        0,
        126,
        12,
        8,
        0,
        140,
        0,
        2,
        0,
        8,
        0,
        1,
        0,
        174,
        0,
        32,
        0,
        141,
        9,
        1,
        0,
        25,
        0,
        1,
        0,
        11,
        0,
        1,
        0,
        25,
        0,
        1,
        0,
        7,
        0,
        3,
        0,
        13,
        0,
        2,
        0,
        15,
        0,
        1,
        0,
        220,
        0,
        3,
        0,
        33,
        0,
        1,
        0,
        26,
        0,
        1,
        0,
        54
      ],
      [
        0,
        1,
        0,
        18,
        0,
        1,
        0,
        32,
        0,
        1,
        0,
        35,
        0,
        1,
        0,
        43,
        0,
        1,
        0,
        54,
        0,
        1,
        0,
        26,
        0,
        1,
        0,
        25,
        0,
        1,
        0,
        78,
        0,
        2,
        0,
        85,
        1,
        2,
        0,
        7,
        1,
        14,
        2,
        101,
        0,
        10,
        0,
        59,
        0,
        21,
        0,
        115,
        0,
        6,
        1,
        117,
        14,
        13,
        0,
        126,
        3,
        2,
        2,
        39,
        5,
        2,
        1,
        8,
        0,
        36,
        0,
        140,
        0,
        4,
        2,
        154,
        0,
        5,
        5,
        39,
        24,
        1,
        0,
        117,
        0,
        2,
        0,
        116,
        1,
        28,
        5,
        60,
        3,
        3,
        1,
        102,
        0,
        11,
        1,
        103,
        0,
        6,
        0,
        109,
        0,
        67,
        0,
        116,
        2,
        9,
        3,
        118,
        0,
        2,
        2,
        167,
        0,
        1,
        1,
        168,
        3,
        19,
        1,
        116,
        39,
        8,
        0,
        141,
        0,
        1,
        0,
        23,
        0,
        1,
        0,
        9,
        0,
        1,
        0,
        175,
        0,
        32,
        0,
        144,
        9,
        1,
        0,
        26,
        0,
        1,
        0,
        12,
        0,
        1,
        0,
        26,
        0,
        1,
        0,
        8,
        0,
        2,
        0,
        40,
        0,
        1,
        0,
        14,
        0,
        1,
        0,
        16,
        0,
        1,
        0,
        33,
        0,
        1,
        0,
        221,
        0,
        1,
        0,
        219,
        0,
        2,
        0,
        34,
        0,
        1,
        0,
        27,
        0,
        1,
        0,
        55
      ],
      [
        0,
        1,
        0,
        19,
        0,
        1,
        0,
        19,
        0,
        1,
        0,
        36,
        0,
        1,
        0,
        44,
        0,
        1,
        0,
        55,
        0,
        1,
        0,
        64,
        0,
        1,
        0,
        26,
        0,
        1,
        0,
        79,
        0,
        2,
        0,
        86,
        0,
        2,
        0,
        8,
        3,
        2,
        1,
        102,
        0,
        7,
        0,
        103,
        0,
        3,
        0,
        109,
        0,
        10,
        1,
        60,
        0,
        21,
        0,
        116,
        1,
        5,
        1,
        118,
        1,
        13,
        0,
        116,
        25,
        1,
        0,
        98,
        0,
        34,
        0,
        141,
        0,
        1,
        0,
        150,
        0,
        1,
        0,
        152,
        2,
        2,
        2,
        152,
        29,
        1,
        1,
        118,
        0,
        2,
        2,
        39,
        5,
        23,
        0,
        61,
        2,
        2,
        2,
        39,
        1,
        2,
        2,
        104,
        0,
        4,
        1,
        107,
        0,
        1,
        1,
        160,
        0,
        1,
        1,
        161,
        0,
        1,
        1,
        162,
        0,
        1,
        1,
        163,
        0,
        4,
        4,
        39,
        0,
        2,
        0,
        110,
        3,
        67,
        67,
        39,
        4,
        1,
        1,
        119,
        0,
        1,
        0,
        165,
        0,
        4,
        3,
        120,
        8,
        18,
        18,
        39,
        39,
        8,
        0,
        144,
        0,
        1,
        0,
        24,
        0,
        1,
        0,
        73,
        0,
        1,
        0,
        176,
        0,
        32,
        0,
        145,
        9,
        1,
        0,
        41,
        0,
        1,
        0,
        13,
        0,
        1,
        0,
        27,
        0,
        1,
        0,
        9,
        0,
        2,
        0,
        25,
        0,
        1,
        0,
        214,
        0,
        1,
        0,
        17,
        0,
        1,
        0,
        34,
        0,
        1,
        0,
        222,
        0,
        1,
        0,
        220,
        0,
        2,
        0,
        26,
        0,
        1,
        0,
        229,
        0,
        1,
        0,
        26
      ],
      [
        0,
        1,
        0,
        20,
        0,
        1,
        0,
        20,
        0,
        1,
        0,
        37,
        0,
        1,
        0,
        45,
        0,
        1,
        0,
        26,
        0,
        1,
        0,
        65,
        0,
        1,
        0,
        70,
        0,
        1,
        0,
        80,
        0,
        2,
        0,
        87,
        0,
        1,
        0,
        9,
        0,
        1,
        0,
        98,
        2,
        1,
        1,
        39,
        0,
        1,
        1,
        104,
        0,
        1,
        1,
        105,
        0,
        2,
        2,
        106,
        0,
        3,
        2,
        107,
        0,
        2,
        2,
        39,
        0,
        1,
        0,
        110,
        3,
        9,
        0,
        61,
        0,
        21,
        21,
        39,
        1,
        1,
        1,
        119,
        0,
        3,
        0,
        120,
        2,
        13,
        13,
        39,
        24,
        1,
        0,
        99,
        1,
        1,
        0,
        142,
        0,
        31,
        0,
        144,
        0,
        2,
        0,
        147,
        0,
        1,
        1,
        151,
        0,
        1,
        1,
        153,
        36,
        1,
        0,
        38,
        0,
        1,
        1,
        155,
        0,
        14,
        1,
        113,
        0,
        1,
        1,
        156,
        0,
        1,
        1,
        157,
        0,
        1,
        1,
        158,
        0,
        4,
        1,
        111,
        12,
        3,
        3,
        108,
        9,
        2,
        2,
        39,
        72,
        1,
        1,
        166,
        3,
        1,
        0,
        121,
        68,
        8,
        0,
        145,
        0,
        1,
        0,
        172,
        0,
        1,
        0,
        74,
        0,
        1,
        0,
        177,
        0,
        32,
        0,
        146,
        9,
        1,
        0,
        42,
        0,
        1,
        0,
        40,
        0,
        1,
        0,
        28,
        0,
        1,
        0,
        73,
        0,
        2,
        0,
        26,
        0,
        1,
        0,
        215,
        0,
        1,
        0,
        18,
        0,
        1,
        0,
        26,
        0,
        1,
        0,
        223,
        0,
        1,
        0,
        223,
        0,
        2,
        0,
        41,
        0,
        1,
        0,
        230,
        0,
        1,
        0,
        27
      ],
      [
        0,
        1,
        0,
        21,
        0,
        1,
        0,
        21,
        0,
        1,
        0,
        38,
        0,
        1,
        0,
        46,
        0,
        1,
        0,
        41,
        0,
        1,
        0,
        66,
        0,
        1,
        0,
        71,
        0,
        1,
        0,
        81,
        0,
        2,
        0,
        88,
        0,
        1,
        0,
        73,
        0,
        1,
        0,
        99,
        9,
        1,
        1,
        108,
        2,
        1,
        1,
        39,
        2,
        1,
        0,
        111,
        0,
        1,
        0,
        62,
        0,
        6,
        0,
        113,
        0,
        1,
        0,
        114,
        23,
        3,
        0,
        121,
        40,
        1,
        0,
        137,
        1,
        1,
        0,
        107,
        0,
        31,
        7,
        145,
        0,
        1,
        0,
        148,
        0,
        1,
        0,
        107,
        38,
        1,
        1,
        39,
        2,
        13,
        13,
        39,
        4,
        3,
        3,
        159,
        99,
        1,
        1,
        123,
        71,
        8,
        0,
        146,
        0,
        1,
        0,
        16,
        0,
        1,
        0,
        75,
        0,
        1,
        0,
        178,
        0,
        18,
        0,
        170,
        0,
        14,
        0,
        171,
        9,
        1,
        0,
        43,
        0,
        1,
        0,
        172,
        0,
        1,
        0,
        26,
        0,
        1,
        0,
        97,
        0,
        2,
        0,
        41,
        0,
        1,
        0,
        26,
        0,
        1,
        0,
        216,
        0,
        1,
        0,
        35,
        0,
        1,
        0,
        224,
        0,
        1,
        0,
        224,
        0,
        2,
        0,
        42,
        0,
        1,
        0,
        231,
        0,
        1,
        0,
        28
      ],
      [
        0,
        1,
        1,
        22,
        0,
        1,
        1,
        22,
        0,
        1,
        1,
        39,
        0,
        1,
        1,
        47,
        0,
        1,
        1,
        42,
        0,
        1,
        1,
        67,
        0,
        1,
        1,
        72,
        0,
        1,
        1,
        82,
        0,
        2,
        2,
        39,
        0,
        1,
        1,
        97,
        0,
        1,
        1,
        100,
        15,
        1,
        1,
        112,
        0,
        1,
        1,
        112,
        0,
        6,
        6,
        39,
        0,
        1,
        1,
        112,
        23,
        1,
        1,
        122,
        0,
        2,
        2,
        123,
        40,
        1,
        1,
        138,
        1,
        1,
        1,
        143,
        7,
        20,
        20,
        39,
        0,
        4,
        4,
        146,
        0,
        1,
        1,
        149,
        0,
        1,
        1,
        143,
        232,
        1,
        1,
        170,
        0,
        7,
        7,
        171,
        0,
        1,
        1,
        173,
        0,
        1,
        1,
        76,
        0,
        1,
        1,
        179,
        0,
        18,
        18,
        39,
        0,
        1,
        1,
        180,
        0,
        13,
        13,
        39,
        9,
        1,
        1,
        211,
        0,
        1,
        1,
        16,
        0,
        1,
        1,
        212,
        0,
        1,
        1,
        213,
        0,
        2,
        2,
        42,
        0,
        1,
        1,
        212,
        0,
        1,
        1,
        217,
        0,
        1,
        1,
        218,
        0,
        1,
        1,
        225,
        0,
        1,
        1,
        226,
        0,
        1,
        1,
        227,
        0,
        1,
        1,
        228,
        0,
        1,
        1,
        232,
        0,
        1,
        1,
        219
      ],
    ],
    names: [
      "total",
      "host",
      "idle:0",
      "irq_exit_rcu",
      "do_softirq_own_stack",
      "asm_call_sysvec_on_stack",
      "__softirqentry_text_start",
      "net_rx_action",
      "napi_poll",
      "virtnet_poll",
      "napi_complete_done",
      "netif_receive_skb_list_internal",
      "__netif_receive_skb_list",
      "__netif_receive_skb_list_core",
      "ip_list_rcv",
      "ip_list_rcv_finish.constprop.0",
      "ip_rcv_finish_core.constprop.0",
      "ip_route_input_noref",
      "ip_route_input_slow",
      "__fib_lookup",
      "fib_rules_lookup",
      "fib4_rule_action",
      "fib_get_table",
      "process_backlog",
      "__netif_receive_skb_one_core",
      "ip_local_deliver",
      "nf_hook_slow",
      "ip_vs_in.part.0",
      "ip_vs_nat_send_or_cont.part.0",
      "nf_nat_ipv4_local_fn",
      "ip_route_me_harder",
      "ip_route_output_flow",
      "ip_route_output_key_hash_rcu",
      "ip_sublist_rcv_finish",
      "ip_forward",
      "ip_vs_out.part.0",
      "handle_response",
      "ip_vs_conn_put",
      "__mod_timer",
      "_raw_spin_unlock_irqrestore",
      "__netif_receive_skb_core",
      "nft_do_chain_ipv4",
      "nft_do_chain",
      "nft_match_eval",
      "set_match_v4",
      "ip_set_test",
      "hash_ipport4_kadt",
      "hash_ipport4_test",
      "ip_local_deliver_finish",
      "ip_protocol_deliver_rcu",
      "tcp_v4_rcv",
      "tcp_v4_do_rcv",
      "tcp_rcv_established",
      "__tcp_transmit_skb",
      "__ip_queue_xmit",
      "__ip_local_out",
      "default_idle",
      "asm_sysvec_apic_timer_interrupt",
      "sysvec_apic_timer_interrupt",
      "run_timer_softirq",
      "__run_timers.part.0",
      "call_timer_fn",
      "tcp_delack_timer",
      "tcp_delack_timer_handler",
      "nf_conntrack_in",
      "resolve_normal_ct",
      "__nf_conntrack_find_get",
      "____nf_conntrack_find",
      "asm_common_interrupt",
      "common_interrupt",
      "nf_confirm",
      "nf_ct_deliver_cached_events",
      "ctnetlink_conntrack_event",
      "virtnet_receive",
      "napi_gro_receive",
      "dev_gro_receive",
      "inet_gro_receive",
      "tcp4_gro_receive",
      "__skb_gro_checksum_complete",
      "skb_checksum",
      "__skb_checksum",
      "csum_partial",
      "do_csum",
      "__udp4_lib_rcv",
      "udp_unicast_rcv_skb",
      "udp_queue_rcv_one_skb",
      "__udp_enqueue_schedule_skb",
      "sock_def_readable",
      "__wake_up_common_lock",
      "secondary_startup_64_no_verify",
      "start_kernel",
      "cpu_startup_entry",
      "do_idle",
      "cpuidle_idle_call",
      "cpuidle_enter",
      "cpuidle_enter_state",
      "default_enter_idle",
      "receive_buf",
      "virtnet_poll_tx",
      "__free_old_xmit_ptr",
      "virtqueue_get_buf_ctx_split",
      "rcu_core",
      "note_gp_changes",
      "rcu_do_batch",
      "rcu_cblist_dequeue",
      "i_callback",
      "file_free_rcu",
      "kmem_cache_free",
      "__slab_free",
      "rcu_report_qs_rdp",
      "rcu_report_qs_rnp",
      "estimation_timer",
      "_raw_spin_lock",
      "try_to_wake_up",
      "tcp_write_timer",
      "run_rebalance_domains",
      "update_blocked_averages",
      "rebalance_domains",
      "load_balance",
      "__bitmap_and",
      "find_busiest_group",
      "update_sd_lb_stats.constprop.0",
      "update_cpu_capacity",
      "update_sg_lb_stats",
      "asm_sysvec_call_function_single",
      "sysvec_call_function_single",
      "_nohz_idle_balance",
      "sched_clock_cpu",
      "sched_clock",
      "kvm_sched_clock_read",
      "pvclock_clocksource_read",
      "schedule_idle",
      "__schedule",
      "finish_task_switch",
      "put_task_stack",
      "account_kernel_stack",
      "tick_nohz_idle_enter",
      "napi_consume_skb",
      "skb_release_head_state",
      "blk_done_softirq",
      "blk_mq_end_request",
      "blk_update_request",
      "bio_free",
      "put_cpu_partial",
      "ext4_end_bio",
      "ext4_finish_bio",
      "end_page_writeback",
      "bio_endio",
      "__rq_qos_done_bio",
      "blkcg_iolatency_done_bio",
      "ktime_get",
      "read_tsc",
      "__rq_qos_done",
      "wbt_done",
      "blk_mq_free_request",
      "cursor_timer_handler",
      "blk_stat_timer_fn",
      "queue_work_on",
      "tw_timer_handler",
      "ip_vs_read_cpu_stats",
      "rcu_segcblist_ready_cbs",
      "proc_free_inode",
      "put_cred_rcu",
      "__put_task_struct",
      "rcu_core_si",
      "cpumask_next_and",
      "_find_next_bit.constprop.0",
      "__msecs_to_jiffies",
      "rcu_read_unlock_strict",
      "haltpoll_reflect",
      "wake_up_page_bit",
      "test_clear_page_writeback",
      "ip_rcv_finish",
      "udp_v4_early_demux",
      "blk_account_io_done",
      "ftrace_trampoline",
      "ftrace_ops_assist_func",
      "kprobe_ftrace_handler",
      "aggr_pre_handler",
      "kprobe_perf_func",
      "inc_node_page_state",
      "entry_SYSCALL_64_after_hwframe",
      "do_syscall_64",
      "__do_sys_newfstatat",
      "vfs_statx",
      "filename_lookup",
      "path_lookupat",
      "link_path_walk.part.0",
      "walk_component",
      "lookup_fast",
      "__d_lookup",
      "__x64_sys_pread64",
      "vfs_read",
      "new_sync_read",
      "ext4_file_read_iter",
      "kprobe_dispatcher",
      "kprobe_trace_func",
      "process_fetch_insn",
      "__x64_sys_mprotect",
      "do_mprotect_pkey",
      "mprotect_fixup",
      "__split_vma",
      "vm_area_dup",
      "__x64_sys_getdents64",
      "iterate_dir",
      "proc_readfd_common",
      "proc_fill_cache",
      "d_hash_and_lookup",
      "ksys_read",
      "pipe_read",
      "prepare_to_wait_event",
      "mark_mt",
      "ipt_do_table",
      "receive_mergeable",
      "ip_sublist_rcv",
      "nf_hook_slow_list",
      "__mkroute_input",
      "fib_validate_source",
      "ip_vs_out_icmp",
      "ip_finish_output2",
      "__dev_queue_xmit",
      "__dev_xmit_skb",
      "sch_direct_xmit",
      "dev_hard_start_xmit",
      "xmit_one.constprop.0",
      "start_xmit",
      "veth_xmit",
      "nft_match_large_eval",
      "nft_counter_eval",
      "ip_vs_conn_in_get_proto",
      "ip_vs_conn_in_get",
      "__ip_vs_conn_in_get",
      "ip_vs_conn_hashkey_param",
    ]
  },
  metadata: {
    units: "samples" as const,
    appName: "liveTrace.profiling",
    name: "liveTrace",
    sampleRate: 100,
    maxNodes: 1024,
    spyName: "unknown" as const,
    format: 'single' as const,
  }
};

const DiffTree = {
  version: 1,
  flamebearer: {
    names: [
    'total',
    'runtime.main',
    'main.main',
    'main.becomesAdded',
    'main.becomesSlower',
    'main.work',
    'runtime.asyncPreempt',
    'main.becomesFaster',
    'github.com/pyroscope-io/pyroscope/pkg/agent/upstream/remote.(*Remote).handleJobs',
    'github.com/pyroscope-io/pyroscope/pkg/agent/upstream/remote.(*Remote).safeUpload',
    'net/http.(*Client).Do',
    'net/http.(*Client).do',
    'net/http.(*Client).send',
    'net/http.send',
    'net/http.(*Transport).RoundTrip',
    'net/http.setupRewindBody',
    'runtime.newobject',
    'runtime.mallocgc',
    'runtime.arenaIndex',
    'github.com/pyroscope-io/pyroscope/pkg/agent.(*ProfileSession).takeSnapshots',
    'runtime.heapBitsSetType',
    ],
    levels: [
    [0, 991, 0, 0, 987, 0, 0],
    [0, 0, 0, 0, 1, 0, 19, 0, 0, 0, 1, 1, 0, 8, 0, 991, 0, 2, 985, 0, 1],
    [
      0, 0, 0, 0, 1, 0, 16, 0, 0, 0, 1, 1, 0, 9, 0, 217, 0, 2, 229, 0, 3, 217,
      165, 0, 231, 147, 0, 7, 382, 603, 1, 378, 604, 0, 4, 985, 6, 6, 982, 5,
      4, 2,
    ],
    [
      0, 0, 0, 0, 1, 0, 17, 0, 0, 0, 1, 1, 0, 10, 0, 217, 217, 2, 229, 229, 5,
      217, 165, 165, 231, 147, 147, 5, 383, 602, 601, 378, 604, 604, 5, 991,
      0, 0, 986, 1, 1, 3,
    ],
    [0, 0, 0, 0, 1, 1, 20, 0, 0, 0, 1, 1, 0, 11, 984, 1, 1, 982, 0, 0, 6],
    [0, 0, 0, 1, 1, 0, 12],
    [0, 0, 0, 1, 1, 0, 13],
    [0, 0, 0, 1, 1, 0, 14],
    [0, 0, 0, 1, 1, 0, 15],
    [0, 0, 0, 1, 1, 0, 16],
    [0, 0, 0, 1, 1, 0, 17],
    [0, 0, 0, 1, 1, 1, 18],
    ],
    numTicks: 1978,
    maxSelf: 604,
  },
  metadata: {
    spyName: 'gospy' as const,
    sampleRate: 100,
    units: 'samples' as const,
    format: 'double' as const,
    leftTicks: 991,
    rightTicks: 987
  }
}

type Props = {
  profile?: Profile;
  dataTestId?: string;
  vertical?: boolean;
  sharedQuery?: SharedQuery;
  // timelineEl?: React.ReactNode;
  diff?: boolean;
};

export function FlameGraphWrapper(props: Props) {
//   const { colorMode } = useColorMode();
//   const exportToFlamegraphDotComFn = useExportToFlamegraphDotCom(props.profile);


  return (
    <FlamegraphRenderer
      showCredit={false}
      profile={props.profile}
    //   colorMode={colorMode}
    >
      {/* {props.timelineEl} */}
    </FlamegraphRenderer>
  );
}

export default function HomePage() {
  return (
    <div>
      <Box>
        <FlamegraphRenderer
          profile={SimpleTree}
          showToolbar={true}
          colorMode='dark'
          showCredit={false}
        /> 
      </Box>
    </div>
  );
}
